<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/7
 * Time: 17:13
 */

namespace app\crm\model;


class User extends BaseModel
{
    public function user(){
        return $this->belongsTo('User','parentid','id')->bind([
            'p_name'=>'nickname'
        ]);
    }
}